<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xml:lang="en" lang="en">
<head>
    <title>My Facelets Page</title>
    <meta http-equiv="keywords" content="enter,your,keywords,here"/>
    <meta http-equiv="description"
          content="A short description of this page."/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

    <!--<link rel="stylesheet" type="text/css" href="styles.css">-->
</head>
<body>
<ui:composition template="BackGeneral.xhtml">
    <ui:define name="content">
        <div style="text-align: left; margin: 10px 0px 0px 0px; width: 98%;">
            <div>
                <h:outputText id="tit" styleClass="tit" value="－系统图片－"/>
            </div>
            <p:separator/>

            <div>
                <p:dataTable id="advlist" value="#{listAdv.advList}" var="adv" rows="3" rowIndexVar="row"
                             paginator="true" paginatorPosition="bottom">
                    <p:column id="num">
                        <h:panelGrid style="text-align:left;" columns="2"
                                     cellpadding="0" cellspacing="0">
                            <h:outputText style="font-weight:bold"
                                          value="#{row+1}#"/>
                            <h:outputLink value="AAdv.jspx?id=#{adv.id}">
                                <h:outputText value="修改"></h:outputText>
                            </h:outputLink>
                            <h:outputLabel value="名称："/>
                            <h:outputText value="#{adv.name}"></h:outputText>
                            <h:outputLabel value="URL："/>
                            <h:outputText value="#{adv.url}"></h:outputText>
                            <h:outputLabel value="图片："/>
                            <h:graphicImage url="#{adv.src}" style="width:95%;" width="#{adv.width}">
                            </h:graphicImage>
                        </h:panelGrid>
                    </p:column>
                </p:dataTable>
            </div>

        </div>

    </ui:define>
</ui:composition>
</body>
</html>
